import React, {Component} from 'react';
import {StoreProvider} from 'iflux2';
import AppStore from './store';

import Title from './component/title';
import GoodsList from './component/goods-list';
import ToolBar from './component/toolbar';

@StoreProvider(AppStore)
export default class GoodsSort extends Component {

    componentDidMount() {
        this.props.store.getGoodsDisplay();
    }


    render() {
        return (
            <div className="goods-sort">
                <Title/>
                <ToolBar/>
                <GoodsList/>
            </div>
        )
    }
}
